﻿<aside class="main-sidebar">
    <section class="sidebar">
        <div class="user-panel">
            <div class="pull-left image">
                <img src="~/Scripts/lib/adminlte/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>管理员</p>
                <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
            </div>
        </div>
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="查找...">
                <span class="input-group-btn">
                    <button type="submit" name="search" id="search-btn" class="btn btn-flat">
                        <i class="fa fa-search"></i>
                    </button>
                </span>
            </div>
        </form>
        <ul class="sidebar-menu"></ul>
    </section>
</aside>
<script>
    function initMenu() {
        $.ajax({
            url: "/Console/Home/LoadMenuPermission", // 跳转到地址
            type: "post",
            async: true,
            success: function (data) {
                $(".sidebar-menu").html(data);
            },
            error: function () {

            }
        });
    }
    initMenu();
</script>